package net.zui;

import java.util.HashMap;
import java.util.Map;

import net.zui.comp.ZBaseFrame;
import net.zui.util.UComm;

public class Manager {
	private static Map<String,ZBaseFrame> frameMap=new HashMap<>();
	
	public static void regFrame(ZBaseFrame frame) {
		frameMap.put(frame.getId(), frame);
	}
	
	public static void start(String frameId) {
		UComm.showMap(Manager.class, frameMap);
		ZBaseFrame baseFrame = frameMap.get(frameId);
		baseFrame.setVisible(true);
	}
}
